package cn.t.enums;


import cn.t.core.enums.Enumer;
import cn.t.core.enums.base.CommonEnum;
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author l
 */
@Enumer
@Getter
@AllArgsConstructor
public enum OnlineStatusEnum implements CommonEnum<Integer, String> {

    ONLINE(1, "在线"),
    OFFLINE(0, "离线");

    @JsonValue
    @EnumValue
    private final Integer code;
    private final String name;
}